﻿@model IEnumerable<Infinity.Models.Instructor_Course_Salary>

@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Instructor.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Course.Course_Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Instructor_Salary.SalaryType)
        </th>
         <th>
             @Html.Label("Value")
         </th>

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Instructor.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Course.Course_Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Instructor_Salary.SalaryType)
        </td>
         <td>
            @Html.DisplayFor(modelItem => item.salaryValue)
        </td>

        <td>
            @Html.ActionLink("Edit", "Edit", new { CourseID = item.CourseID ,InstructorID=item.InstructorID,SalaryID=item.SalaryID}) 
          @*  @Html.ActionLink("Details", "Details", new { CourseID = item.CourseID ,InstructorID=item.InstructorID,SalaryID=item.SalaryID}) *@
            @Html.ActionLink("Delete", "Delete", new {  CourseID = item.CourseID ,InstructorID=item.InstructorID,SalaryID=item.SalaryID })
        </td>
    </tr>
}

</table>
